import Mock from 'mockjs';

//
const jobmanagement = Mock.mock({
    "data|30-40": [{
        'id|+1': 1,
        'acquisition_tools': '@cword(4, 6)',
        'job_package_name': '@ctitle(2)',
        'job_package_address': '@ctitle(3, 5)',
        'type': "@integer(1, 8)",
        'data_source': '@integer(1, 3)',
        'object_table': '@cword(4, 6)',
        'desc': '@csentence(30, 40)',
        'configuration_associated': '@cword(4, 6)',
        'state|1-2': true,
        'created_person': '@cname',
        'created_date': '@datetime',
      }]
})
const selectData = Mock.mock({
    "data|4-8": [{
      'value|+1': 1,
      'label': '@cword(4, 6)',
    }]
  });
export function getJobManagement() {
    return {
        code: 200,
        data: jobmanagement.data
    }
}
export function postJobManagement() {
    return {
        code: 200,
        data: [],
        message: "添加成功",
        success: true,
    }
}
export function deleteJobManagement() {
    return {
        code: 200,
        data: [],
        message: '删除成功',
        success: true,
    }
}
